
#ifndef BNETDEFINITIONS_H
#define BNETDEFINITIONS_H



//////////////////////////////////////////////////////////////////////////////


// Below are the battle.net packet ID's.
#define SID_NULL			0x00  
#define SID_CLIENTID			0x05  
#define SID_STARTVERSIONING		0x06  
#define SID_REPORTVERSION		0x07  
#define SID_GETADVLISTEX		0x09  
#define SID_ENTERCHAT			0x0A  
#define SID_GETCHANNELLIST		0x0B  
#define SID_JOINCHANNEL			0x0C  
#define SID_CHATCOMMAND			0x0E  
#define SID_CHATEVENT			0x0F  
#define SID_LEAVECHAT                   0x10
#define SID_FLOODDETECTED		0x13  
#define SID_UDPPINGRESPONSE		0x14  
#define SID_MESSAGEBOX			0x19  
#define SID_PING			0x25  
#define SID_READUSERDATA		0x26  
#define SID_WRITEUSERDATA		0x27  
#define SID_LOGONCHALLENGE		0x28  
#define SID_LOGONRESPONSE		0x29  
#define SID_CREATEACCOUNT		0x2A  
#define SID_CHANGEPASSWORD		0x31  
#define SID_LOGONRESPONSE2		0x3A  
#define SID_CREATEACCOUNT2		0x3D  
#define SID_LOGONREALMEX		0x3E  
#define SID_AUTH_INFO			0x50  
#define SID_AUTH_CHECK			0x51  
#define SID_FRIENDLIST			0x65  
#define SID_FRIENDUPDATE		0x66  
#define SID_FRIENDADDED			0x67  
#define SID_FRIENDREMOVED		0x68  
#define SID_FRIENDMOVED			0x69  
#define SID_FINDCLANCANDIDATES		0x70  
#define SID_INVITEMULTIPLEUSERS		0x71  
#define SID_DISBANDCLAN			0x73  
#define SID_CLANINFO			0x75  
#define SID_CLANREQUEST			0x77  
#define SID_CLANINVITE			0x79  
#define SID_CLANMOTD			0x7C  
#define SID_CLANMEMBERLIST		0x7D  
#define SID_CLANMEMBERUPDATE		0x7F  


// Below are the Battle.net/Starcraft UDP packet ID's.
#define PKT_SERVERPING			0x05  
#define PKT_KEEPALIVE			0x07  
#define PKT_CONNTEST2			0x09  


#define BROOD_WAR_PRODUCT_ID            0x53455850


//////////////////////////////////////////////////////////////////////////////


// Event ID's

#define EID_SHOWUSER			0x01  
#define EID_JOIN			0x02  
#define EID_LEAVE			0x03
#define EID_WHISPER			0x04  
#define EID_TALK			0x05  
#define EID_BROADCAST			0x06  
#define EID_CHANNEL			0x07  
#define EID_USERFLAGS			0x09  
#define EID_WHISPERSENT			0x0A  
#define EID_CHANNELFULL			0x0D  
#define EID_CHANNELDOESNOTEXIST		0x0E  
#define EID_CHANNELRESTRICTED		0x0F  
#define EID_INFO			0x12
#define EID_ERROR			0x13
#define EID_EMOTE			0x17  



// Channel flags.

#define CHANNEL_PUBLIC			0x01  
#define CHANNEL_MODERATED		0x02  
#define CHANNEL_RESTRICTED		0x04  
#define CHANNEL_SILENT			0x08  
#define CHANNEL_SYSTEM			0x10  
#define CHANNEL_PRODUCTSPECIFIC		0x20 
#define CHANNEL_GLOBAL			0x1000  



// User flags.

#define USER_BLIZZREP			0x01  
#define USER_CHANNELOP			0x02  
#define USER_SPEAKER			0x04  
#define USER_ADMIN			0x08  
#define USER_NOUDP			0x10  
#define USER_SQUELCHED			0x20  
#define USER_GUEST			0x40  
#define USER_BEEPENABLED		0x100  
#define USER_PGLPLAYER			0x200  
#define USER_PGLOFFICIAL		0x400  
#define USER_KBKPLAYER			0x800  
#define USER_KBKOFFICIAL		0x1000  
#define USER_JAILED			0x100000  
#define USER_GFPLAYER			0x200000  





// Event ID's.

#define EID_SHOWUSER			0x01  
#define EID_JOIN			0x02  
#define EID_LEAVE			0x03  
#define EID_WHISPER			0x04  
#define EID_TALK			0x05  
#define EID_BROADCAST			0x06  
#define EID_CHANNEL			0x07  
#define EID_USERFLAGS			0x09  
#define EID_WHISPERSENT			0x0A  
#define EID_CHANNELFULL			0x0D  
#define EID_CHANNELDOESNOTEXIST		0x0E  
#define EID_CHANNELRESTRICTED		0x0F  
#define EID_INFO			0x12  
#define EID_ERROR			0x13  
#define EID_EMOTE			0x17  





#endif
